"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = __importDefault(require("commander"));
const _1 = require(".");
commander_1.default.version('1.0')
    .option('--config')
    .action((name) => {
    const config = require(name);
    _1.serve(config);
}).parse(process.argv);
// commander
//     .command('serve')
//     .description('launch web server')
//     .option('--config', 'web port')
//     .action((options) => {
//         console.log(`server on port ${options}`);
//     });
// commander
//     .command('start <service>', 'start named service')
//     .command('stop [service]', 'stop named service, or all if no name supplied')
// commander
//     .parse(process.argv);
